package com.gzc.pm.ro;

import java.util.ArrayList;
import java.util.List;

import com.gzc.pm.bean.TestItemFactorBean;
import com.gzc.pm.bean.ProcessRouteBean;
import com.gzc.pm.bean.EquipmentBean;
import com.gzc.pm.dao.TestItemFactorDao;
import com.gzc.pm.dao.ProcessRouteDao;
import com.gzc.pm.dao.EquipmentDao;

public class TestItemFactorRo {
	
	public List<TestItemFactorBean> getTestItemListByPlId(){
		//List<ProcessRouteBean> plList = new ProcessRouteDao().getInfoByPlId();
		List<EquipmentBean> eList = new EquipmentDao().getInfoByPlId(1);
		String equCodeStr = "";
		if(eList.size() != 0){
			for (EquipmentBean equipmentBean : eList) {
				equCodeStr += equipmentBean.getEquCode() + ",";
			}
			equCodeStr = equCodeStr.substring(equCodeStr.length()-1);
			System.out.println(equCodeStr);
		}
		
		return null;
	}
	
	public static void main(String[] args) {
		TestItemFactorRo aFactorRo = new TestItemFactorRo();
		aFactorRo.getTestItemListByPlId();
	}

}
